from PyQt5.QtWidgets import QApplication

import sys
import ctypes

from mypackage.core import qrtool

if __name__ == '__main__':
    # 设置任务栏图标
    ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("myappid")
    # 适配2k等高分辨率屏幕,低分辨率屏幕可以缺省
    # QCoreApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
    app = QApplication(sys.argv)
    win = qrtool.Win()
    win.show()
    sys.exit(app.exec_())
